import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入 element-plus 的中文包
import locale from 'element-plus/dist/locale/zh-cn.mjs'
import router from '@/router'
import App from './App.vue'
import { createPinia } from 'pinia'
//导入 persist 的 createPersistedState函数
import { createPersistedState } from 'pinia-persistedstate-plugin'

const app = createApp(App);
const pinia = createPinia();

//创建一个 persit 实例
const persist = createPersistedState();
//在 pinia 中，使用 persist
pinia.use(persist);

app.use(pinia);
app.use(router);
app.use(ElementPlus,{locale});
app.mount('#app')
